package com.qfedu.lc.user.controller;


import com.qfedu.lc.common.vo.R;
import com.qfedu.lc.user.service.SmsLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;

/**
 * <p>
 * 3.鐭俊鍙戦€佽〃 前端控制器
 * </p>
 *
 * @author wgz
 * @since 2024-06-05
 */
@RestController
@RequestMapping("/sms/")
public class SmsLogController {


    @Autowired
    private SmsLogService smsLogService;


    /**
     * 发送注册验证码
     * @param phone
     * @return
     */
    @RequestMapping("/sendRegisterCode")
    public R sendRegisterCode(@RequestParam("phone") String phone){

       return  smsLogService.sendRegisterCode(phone);
    }



}

